<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function afc4()
{
	var st=["a","b","c"];
	document.getElementById('pq7').innerHTML=st[1];
}
function afc5()
{
	var x=10;
	var y=60;
	var z=9;
	document.getElementById('pq8').innerHTML=x+'<br>'+y;

}
function afc6()
{
	document.getElementById('pq9').innerHTML=Math.random();
}
function afc7()
{
	document.getElementById('pq10').innerHTML=Math.min(0,2,7,9,-9,7);
}
function afc8()
{
	document.getElementById('pq11').innerHTML=Math.max(8,2,5,3,7,9);
}
function afc9()
{
	
	document.getElementById('pq12').innerHTML=Math.floor(Math.random()*21);

}
function afc10()
{
	document.getElementById('pq13').innerHTML=
	Math.abs(3-4)+'<br>'+Math.cos(90)+'<br>'+Math.sin(90)+'<br>'+Math.pow(4,4)+'<br>'+Math.sqrt(16)+'<br>'+Math.log(16);
}
	
</script>
</head>
<button onclick="afc4()">check11111</button>
<button onclick="afc5()">number</button>
<button onclick="afc6()">ngau nhien</button>
<button onclick="afc7()">so nho nhat</button>
<button onclick="afc8()">so lon nhat</button>
<button onclick="afc9()">ngau nhien den 21</button>
<button onclick="afc10()">cacthuattoan</button>
<body>
<p id="pq13"></p>
<p id="pq12"></p>
<p id="pq11"></p>
<p id="pq10"></p>
<p id="pq9"></p>
<p id="pq7"></p>
<p id="pq8"></p>
<p id="pq"></p>

<br />
 <p id="pq2"></p>
 <p id="pq3"></p>
<script type="text/javascript">
  function afc(a,b)
  {
	  return a*b;
  }
  document.getElementById('pq').innerHTML=afc(4,7);
  function afc1(f)
  {
	  return (4/2)+(f/5);
  }
  document.getElementById('pq1').innerHTML=afc1(10);

</script>
<script type="text/javascript">
  var tex="frergtgtgrtgrtgrtgrt";
  document.getElementById('pq2').innerHTML=tex.length;
</script>
<script type="text/javascript">
   var srt="phuquyquytoi";
   var att=srt.split('');
   var text="";
   for(var i=0;i<att.length;i++)
   {
	  text +=att[i]+'<br>';   
   }
   document.getElementById('pq3').innerHTML=text;
</script>

  <button onclick="getElementById('demo').innerHTML=Date()">this is time</button>
 <p id="demo"></p>
 <br />
 <button onclick="this.innerHTML=Date()">this is time</button>
 
</body>
</html>
